Adds files to archive.
7z a -tzip archive.zip subdir\
adds all files and subfolders from folder subdir to archive archive.zip.
7z a -t7zip Files.7z *.txt -r
adds all *.txt files from current folder and its subfolders to archive Files.7z.
-i (Include)
-m (Method)
-p (Set Password)
-r (Recurse)
-sfx (create SFX)
-si (use StdIn)
-so (use StdOut)
-t (Type of archive)
-u (Update)
-v (Volumes)
-w (Working Dir)
-x (Exclude)
Commands:
d (Delete),
u (Update)
Switches:
-u (Update)